package cc.vv.btpartyjob.jnimodule.delegate

import android.widget.ListView
import cc.vv.baselibrary.view.BaseTopBarView
import cc.vv.btpartyjob.jnimodule.R
import cc.vv.mvp.delegate.BaseAppDelegate

/**
 * 村
 * Created by Chen.qi on 2018/10/30.
 */
class VillageCunActivityDelegate : BaseAppDelegate() {

    override fun initWidget() {
    }

    override fun initLayoutRes(): Int {
        return R.layout.activity_test
    }

    /**设置标题title*/
    fun setTopBarTitle(topBarTitle: String) {
        val titleBar = getView<BaseTopBarView>(R.id.btv_orGan_topBar)
        titleBar?.setTitle(topBarTitle)
    }


    /**设置标题右边按钮点击事件*/
    fun setTitleBackBtnOnClick(event: BaseTopBarView.EventInterface) {
        val titleBar = getView<BaseTopBarView>(R.id.btv_orGan_topBar)
        titleBar?.setEventInterface(event)
    }

    fun getListView(): ListView {
        return getView(R.id.lv_orGan_list)
    }

}